home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v9n22.arc / TODAY.BAT < prev    next >
DOS Batch File  |  1990-12-04  |  285b  |  11 lines

  1. @ECHO OFF
  2. REM Batch to get the environment variable TODAY and NOW
  3. REM in the DIR-format, e.g. " 7-20-89" and "1:07p"
  4. IF NOT %4.==. GOTO label
  5. COPY /B C:\BAT\TODAY.BAT+,, > NUL
  6. DIR C:\BAT\TODAY.BAT | FIND "TODAY" > TEMP.BAT
  7. TEMP.BAT
  8. :label
  9. SET today=%3
  10. SET now=%4
  11. DEL TEMP.BAT